<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title>Document</title>
	<style>
		html,
		body {
			margin: 0;
			padding: 0;
			width: 100%;
			height: 100%;
		}

		#app {
			width: 100%;
			height: 100%;
			padding: 20px;
			box-sizing: border-box;
			overflow-y: auto;
		}

		.main {
			width: 100%;
			height: 100%;
			display: flex;
		}

		.resolution {
			width: 500px;
			border-right: 1px solid #eee;

		}

		.demo {
			padding: 0 20px;
			flex: auto;
			height: 100%;
			overflow-y: auto;
		}
	</style>
	<!-- <script src="./vue.js"></script> -->
</head>

<body>
	<div id="app">
		<div class="main">
			<div class="resolution">
				<div>版本：Vue2.6.14</div>
				<div>解析：</div>
				<p>
					1、初始化：通过new Vue()调用_init方法
				</p>
			</div>
			<div class="demo">
				<h3>vue用例</h3>
				<div>{{msg}}</div>
				<button @click="add">加法</button>
				<div>{{current}}</div>
			</div>
		</div>
	</div>
	<script src="./vue.js" type="module"></script>
	<script type="module">
		new Vue({
			el: "#app",
			data() {
				return {
					msg: "Holle Vue",
					current: 0,
				}
			},
			methods: {
				add() {
					this.current++;
				},
			},
			beforeCreate(){
				console.log(`output->beforeCreate`,111)
			}
		})
	</script>
</body>

</html>